//
//  FCTImgBLabelView.h
//  commonUse
//
//  Created by WJC on 2018/11/21.
//带删除图片查看

#import <UIKit/UIKit.h>
@class FCTImgBLabelView;
@protocol TImgBLabelcloseBtnDelegate <NSObject>
@optional
-(void)TImgBLabelcloseBtnClickWithButton:(UIButton*)sender AndSuperView:(FCTImgBLabelView*)view;
@end
@protocol TImgBLabelmageTapDelegate <NSObject>
@optional
-(void)TImgBLabelimageWithTap:(UITapGestureRecognizer*)sender AndSuperView:(FCTImgBLabelView*)view;
-(void)TImgBLabelbottomTagLabelTap:(UITapGestureRecognizer*)sender AndSuperView:(FCTImgBLabelView*)view;
@end
@interface FCTImgBLabelView : UIView


/**
 实现继承用的私有属性方法
 */

-(void)tap:(UITapGestureRecognizer*)sender;

@property (nonatomic,strong) UIImageView *imageView;
@property (nonatomic,strong) UILabel *label;
@property (nonatomic,strong) UIButton *closeBtn;
@property(nonatomic,weak)id<TImgBLabelcloseBtnDelegate> btnDelegate;
@property(nonatomic,weak)id<TImgBLabelmageTapDelegate> ImgDelegate;



/**
 用于外部使用
 */
-(instancetype)initWithFrame:(CGRect)frame andImage:(id)Image andName:(NSString*)label andHiddenClose:(BOOL)hiddenClose;

/**
 用于控件封装使用
 */
-(instancetype)initWithTagFrame:(CGRect)frame andImage:(id)Image andName:(NSString*)label andHiddenClose:(BOOL)hiddenClose;
+(void)setPlaceImageWithImg:(UIImage *)img;
@end
